home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
FORTRAN
/
3017.ZIP
/
RAN.FOR
< prev
next >
Wrap
Text File
|
1988-09-16
|
437b
|
25 lines
$STORAGE:2
FUNCTION RAN(ISEED)
C
C D. HATZIPAPAFOTIOU
C PC VERSION -- 9/15/88
C
C THE VAX/VMS RAN ROUTINE
C
C ISEED -- INPUT/OUTPUT SEED
C RAN -- OUTPUT RANDOM NUMBER (0,1)
C
EXTERNAL SDRAN
INTEGER*4 ISEED
C
CALL SDRAN(ISEED)
IF(ISEED.LT.0)THEN
RAN=1.0+ISEED*0.23283064E-9
ELSE
RAN=ISEED*0.23283064E-9
ENDIF
C
RETURN
END